/*
* Copyright (C) 2020 ~ 2024 chaigec All Rights Reserved.
*
* Author:     chaigec <chaigec@163.com>
* Maintainer: chaigec <chaigec@163.com>

 * Use of this source code is governed by MIT license that can be found in the
 * LICENSE file in the root of the source tree. All contributing project authors
 * may be found in the AUTHORS file in the root of the source tree.
*/

#include "MkUtil/MkSystemState.h"
#include <gtest/gtest.h>

TEST(SystemState, Info)
{
    CSystemState State;
    State.Update();

    MkString SelfStartTime = State.GetSelfStartTime();
    EXPECT_EQ(SelfStartTime.empty(), FALSE);

    MkString SystemStartTime = State.GetSystemStartTime();
    EXPECT_EQ(SystemStartTime.empty(), FALSE);

    double CpuPercent = State.GetSystemCpuPercent();
    double MemPercent = State.GetSystemMemPercent();
}